import { createAction } from 'redux-actions'

// 获取todos列表相关
export const load_todo = createAction('load_todo')
export const load_todo_success = createAction('load_todo_success')

// 新增todo列表项的相关指令
export const add_todo = createAction('add_todo')
export const add_todo_success = createAction('add_todo_success')

// 删除todo
export const remove_todo = createAction('remove_todo')
export const remove_todo_success = createAction('remove_todo_success')

// 更新指令
export const motify_todo = createAction('motify_todo')
export const motify_todo_success = createAction('motifye_todo_success')

// 筛选指令
export const motify_filter_todo = createAction('motify_filter_todo')

// 清除已完成任务
export const clear_todo_completed = createAction('cleat_todo_completed')
export const clear_todo_completed_success = createAction('cleat_todo_completed_success')

// 任务名称修改功能
export const modify_todo_edit = createAction('modify_todo_edit')
export const modify_todo_eidt_success = createAction('modify_todo_eidt_success') 

// 任务名称确认指令
export const modify_todo_name = createAction('modify_todo_name')
export const modify_todo_name_success = createAction('modify_todo_name_success') 

/**
 *  01 发送请求获取数据
 *  02 异步操作完成以后触发新的指令
 */